#pragma once

#include "stdafx.h"

class Observer
{
public:
    Observer(){}
    
    virtual ~Observer(){}

    virtual void Update(int temperature, int pressure, int moisture)
    {
        m_temperature = temperature;
        m_pressure = pressure;
        m_moisture = moisture;
    }

    virtual void Display()
    {
        std::cout << "temperature : " << m_temperature << " pressure : " << m_pressure << " moisture : " << m_moisture << std::endl;
    }

private:
    int m_temperature;
    int m_pressure;
    int m_moisture;
};